package com.ucarbon.ucarbon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 年份信息
 * </p>
 *
 * @author XuGaoran
 * @since 2024-01-04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("u_years")
public class Years implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 年份索引
     */
    @TableId(value = "year_id", type = IdType.AUTO)
    private Integer yearId;

    /**
     * 年份字符串
     */
    private String yearNum;

}
